package io.renren.service.impl;

import io.renren.entity.MerchantEntity;
import io.renren.entity.ShopOrderVOEntity;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;



import io.renren.dao.ShopOrderDao;
import io.renren.entity.ShopOrderEntity;
import io.renren.service.ShopOrderService;

import java.util.List;


@Service("shopOrderService")
public class ShopOrderServiceImpl extends ServiceImpl<ShopOrderDao, ShopOrderEntity> implements ShopOrderService {

    @Override
    public List<ShopOrderEntity> getMyOrder(int userid){
        List<ShopOrderEntity> list = baseMapper.getMyOrder(userid);
        return list;
    }

    @Override
    public ShopOrderVOEntity getOrderByOrderSn(String ordersn){
        ShopOrderVOEntity entity = baseMapper.getOrderByOrderSn(ordersn);
        return entity;
    }

    @Override
    public ShopOrderEntity getShopOrderByOrderSn(String ordersn){
        ShopOrderEntity entity = baseMapper.getShopOrderByOrderSn(ordersn);
        return entity;
    }

    @Override
    public List<ShopOrderEntity> getOrderList(){
        List<ShopOrderEntity> list = baseMapper.getOrderList();
        return list;
    }
}
